package com.kantboot.business.shop.repository;

import com.kantboot.business.shop.domain.entity.BusShopGoodsType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface BusShopGoodsTypeRepository extends JpaRepository<BusShopGoodsType, Long> {

    @Query("""
    FROM BusShopGoodsType
    ORDER BY priority DESC
    """)
    List<BusShopGoodsType> getAll();

}
